<?php foreach ($this->actions as $action):?>
 	<?php switch ($action->action_id) {
 	        
 	    case '1':
 	        $user_name = new Model_User($action->user_id);
 	        $user_link  = '<a
				href="'.$this->url(array('controller' => $user_name->login ,"action" => null,'request' => null),"default").'">
				'.$user_name->login.'</a>';
 	        
 	        
 	            $ava_link = '<img src="'.$this->baseUrl('upload' . DIRECTORY_SEPARATOR . $action->action_help).'" alt="avatar image">';
 	        
 	        echo $this->translate('%1 change his avatar to %2',$user_link,$ava_link);
 	       echo '<br>';echo '<br>';
 	    break;
 	    
 	    
 	    
 	    case '2':
            $user_name = new Model_User($action->user_id);
 	        $user_link  = '<a
				href="'.$this->url(array('controller' => $user_name->login ,"action" => null,'request' => null),"default").'">
				'.$user_name->login.'</a>';

 	        
 	        $model_user = new Model_User($action->action_help);
 	        $link  = '<a
				href="'.$this->url(array('controller' => $model_user->login ,"action" => null,'request' => null),"default").'">
				'.$model_user->login.'</a>';
 	        
 	        
 	        echo $this->translate('%1 add %2 to friends',$user_link,$link);
 	        echo '<br>';echo '<br>';
 	    break;
 	    
 	    
 	    
 	    case '3':
 	        $user_name = new Model_User($action->user_id);
 	        $user_link  = '<a
				href="'.$this->url(array('controller' => $user_name->login ,"action" => null,'request' => null),"default").'">
				'.$user_name->login.'</a>';
 	        
 	        $model_album = new Model_Photo();
 	        $album_name = $model_album->getAlbumName($action->action_help)->name;
 	        $album_link  = '<a
				href="'.$this->url(array('controller' => 'photo' ,"action" => "album",'request' => array($user_name->login,$action->action_help)),"default").'">
				'.$album_name.'</a>';
 	        
 	         
 	        
 	        $photo_link = '<img src="'.$this->baseUrl('album'. DIRECTORY_SEPARATOR .$user_name->login. DIRECTORY_SEPARATOR.$action->action_help.DIRECTORY_SEPARATOR.'thumb'.DIRECTORY_SEPARATOR.$action->action_help2).'">'; 
 	        echo $this->translate('%1 add photo %2 to album %3',$user_link,$photo_link,$album_link);
 	        echo '<br>';echo '<br>';
 	    break;
 	    
 	    
 	    
 	    case '4':
 	        $user_name = new Model_User($action->user_id);
 	        $user_link  = '<a
				href="'.$this->url(array('controller' => $user_name->login ,"action" => null,'request' => null),"default").'">
				'.$user_name->login.'</a>';
 	        
 	        
 	        echo $this->translate('%1 change his status to %2',$user_link,$action->action_help);
 	        echo '<br>';echo '<br>';
 	    break;
 	    
 	    case '5':
 	        $user_name = new Model_User($action->user_id);
 	        $user_link  = '<a
				href="'.$this->url(array('controller' => $user_name->login ,"action" => null,'request' => null),"default").'">
				'.$user_name->login.'</a>';
 	        
 	        echo $this->translate('%1 add audio %2',$user_link,$action->action_help);
 	        echo '<br>';echo '<br>';
 	    break;
 	    
 	    case '6':
 	        $user_name = new Model_User($action->user_id);
 	        $user_link  = '<a
				href="'.$this->url(array('controller' => $user_name->login ,"action" => null,'request' => null),"default").'">
				'.$user_name->login.'</a>';
 	        
 	        echo $this->translate('%1 add video %2',$user_link,$action->action_help);
 	        echo '<br>';echo '<br>';
 	    break;
 	}?>
<?php endforeach;?> 
